home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Printing / STD File Saver 2.0 / Source / StdFileSaver.a < prev    next >
Encoding:
Text File  |  1996-01-08  |  1.1 KB  |  50 lines  |  [TEXT/MPS ]

  1. ;
  2. ; Copyright 1991-1996 Apple Computer. All rights reserved.
  3. ;
  4. ;    You may incorporate this sample code into your applications without
  5. ;    restriction, though the sample code has been provided "AS IS" and the
  6. ;    responsibility for its operation is 100% yours.  However, what you are
  7. ;    not permitted to do is to redistribute the source as "DSC Sample Code"
  8. ;    after having made changes. If you're going to re-distribute the source,
  9. ;    we require that you make it clear in the source that the code was
  10. ;    descended from Apple Sample Code, but that you've made changes.
  11. ;
  12.  
  13. ; all functions just say that everything is fine and nothing else
  14. ; see also StdFileSaver.c for an alternate version of the driver
  15. ;
  16. ; a printer driver related to a physical device would do more
  17.  
  18.  
  19. _Debugger    OPWORD    $A9FF
  20.  
  21. XPRINT    PROC    EXPORT
  22.     
  23.     DC.W    $0C00
  24.     DC.W    $0000
  25.     DC.W    $0000
  26.     DC.W    $0000
  27.     DC.W    DRVROPEN
  28.     DC.W    DRVRPRIME
  29.     DC.W    DRVRCONTROL
  30.     DC.W    DRVRSTATUS
  31.     DC.W    DRVRCLOSE
  32.     DC.B    '.Print'
  33.     DC.B    $20
  34.  
  35. DRVROPEN
  36.     MOVE.B    $0A,$0007(A1)
  37.  
  38. DRVRPRIME
  39. DRVRSTATUS
  40. DRVRCLOSE
  41.     MOVEQ    #$00,D0
  42.     RTS
  43. DRVRCONTROL
  44.     MOVEQ    #$00,D0
  45.     MOVE.L    $08FC,-(A7)    ; $08FC is JIODone
  46.     RTS
  47.  
  48.     ENDPROC
  49.     END
  50.